﻿<Window x:Class="JJCraft.JJCraftWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="JJCraft - 竞技场赛后分析工具" SizeToContent="Height" Width="450" ResizeMode="NoResize"  Closing="Window_Closing" Loaded="Window_Loaded" WindowStartupLocation="CenterScreen">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"></RowDefinition>
            <RowDefinition></RowDefinition>
        </Grid.RowDefinitions>
        <GroupBox Header="设置" Grid.Row="0" Margin="10">
            <StackPanel Orientation="Vertical">
                <DockPanel Margin="5">
                    <Label Content="战斗日志文件:" DockPanel.Dock="Left"></Label>
                    <Button Width="80" Margin="10,0,0,0" Content="浏览..." DockPanel.Dock="Right" Name="buttonBrowseLogFile" Click="buttonBrowseLogFile_Click"></Button>
                    <TextBox DockPanel.Dock="Left" Name="textLogFileName" IsReadOnly="True"></TextBox>
                </DockPanel>
            </StackPanel>
        </GroupBox>
        <DockPanel Grid.Row="1">
            <ProgressBar Name="progressBar" Minimum="0" Maximum="100" DockPanel.Dock="Bottom" Visibility="Collapsed" Height="10" Margin="10,0,10,0"></ProgressBar>
            <GroupBox Header="分析结果" DockPanel.Dock="Top" Margin="10,0,10,0" Name="groupResults" Visibility="Collapsed">
                <ListBox MinHeight="60" MaxHeight="200" ScrollViewer.VerticalScrollBarVisibility="Visible" ScrollViewer.HorizontalScrollBarVisibility="Auto" Name="listResults" SelectionMode="Extended">

                </ListBox>
            </GroupBox>
            <DockPanel Margin="10" DockPanel.Dock="Top">
                <Button DockPanel.Dock="Right" Width="60" Content="退出" Margin="10,0,0,0" Name="buttonExit" Click="buttonExit_Click"></Button>
                <Button DockPanel.Dock="Right" Width="80" Content="清除结果" Margin="10,0,0,0" Name="buttonClear" Click="buttonClear_Click" Visibility="Collapsed"></Button>
                <Button DockPanel.Dock="Right" Width="80" Content="生成报告" Margin="10,0,0,0" Name="buttonReport" Click="buttonReport_Click"></Button> 
                <Button DockPanel.Dock="Left" Content="开始分析" Name="buttonParse" Click="buttonParse_Click"></Button>
            </DockPanel>
        </DockPanel>
    </Grid>
</Window>
